package com.youlai.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.entity.TCarConfig;
import com.youlai.system.model.entity.TCarDrivingLicense;
import com.youlai.system.model.form.ConfigForm;
import com.youlai.system.model.form.DrivingLicenseForm;
import com.youlai.system.model.vo.CarConfigPageVO;
import com.youlai.system.model.vo.DrivingLicenseVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * 系统配置对象转换器
 *
 * @author gmli
 * @since 2024/2/26
 */
@Mapper(componentModel = "spring")
public interface CarDrivingLicenseConverter {


    DrivingLicenseVO toPageVo(DrivingLicenseVO bo);

    Page<DrivingLicenseVO> toPageVo(Page<DrivingLicenseVO> bo);

    DrivingLicenseForm entity2Form(TCarConfig entity);

    @InheritInverseConfiguration(name = "entity2Form")
    TCarDrivingLicense form2Entity(DrivingLicenseForm entity);

}
